<?php $collection = $this->_getCollection(); ?>
<?php if (count($collection) > 0) : ?>
<section class="landing">
	<div id="landingNav">	
	</div>
	<figure id="landingBanner"> 
	<?php foreach ($collection as $item) : ?>
		<?php $_imageList = $item->getImageList(); ?>
		<?php if (is_array($_imageList) and sizeof($_imageList) > 0) : ?>		
			<?php foreach ($_imageList as &$_item) : ?>			
				<a href="<?php echo $_item['label']; ?>" target="_blank">
					<img alt="Banner" src="<?php echo $this->helper('gtbanner/image')->init($_item['file'])->constrainOnly(TRUE)->keepAspectRatio(FALSE)->keepFrame(TRUE); ?>" />				
				</a>			
			<?php endforeach; ?>		
		<?php endif; ?>
	<?php endforeach; ?>
	</figure>
</section>
<script type="text/javascript">
	jQuery(function(){
		jQuery('#landingBanner').cycle({
			pager: '#landingNav'
		});
	});
</script>
<?php endif; ?>